package com.zy.chat.vo;


import com.zy.chat.entity.SingleMessages;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class SinglemsgsDoc {

    private Integer id;

    private  String fromUser;

    private  String toUser;

    private String content;

    private String sendTime;

    private String type;

    public SinglemsgsDoc(SingleMessages singlemsgs){
        this.id=singlemsgs.getId();
        this.fromUser=singlemsgs.getFromUser();
        this.toUser=singlemsgs.getToUser();
        this.content=singlemsgs.getContent();
        this.sendTime=singlemsgs.getSendTime();
        this.type=singlemsgs.getType();
    }
}
